package com.wavercaz.freeforum.services.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wavercaz.freeforum.mappers.CommentMapper;
import com.wavercaz.freeforum.pojo.Comment;
import com.wavercaz.freeforum.pojo.CommonSearchParam;
import com.wavercaz.freeforum.pojo.vo.CommentVo;
import com.wavercaz.freeforum.services.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper,Comment> implements CommentService {
    @Autowired
    private CommentMapper commentMapper;
    @Override
    public IPage<CommentVo> getCommentVoList(CommonSearchParam commonSearchParam, Page<CommentVo> page) {
        return commentMapper.getCommentVoList(commonSearchParam,page);
    }
}
